x86: Fix atomic_write*() macros to correctly inform GCC that memory
authorKeir Fraser <keir@xen.org>
Sat, 8 Jan 2011 10:05:55 +0000 (10:05 +0000)
committerKeir Fraser <keir@xen.org>
Sat, 8 Jan 2011 10:05:55 +0000 (10:05 +0000)
commit44260b1a73a53f015530798438c20301f0858173
tree9d2bee4fb61cff505c2193c2dcaa7739642a40aa
parentfd01e26c97cd60849264baff3831a7b6a0edefd4
x86: Fix atomic_write*() macros to correctly inform GCC that memory
it knows about is being written to.

The bug is a copy-and-paste error from inline asm that writes to I/O
memory. In that case, as with asm for accessign guest memory,
specifying memory as a read-only parameter is acceptable because the
memory cannot alias with anything that GCC reads directly.

Signed-off-by: Keir Fraser <keir@xen.org>
xen/include/asm-x86/atomic.h